package day03.test2;

import java.util.Scanner;

public class 判断闰年_JAVA {
    public static void main(String[] args) {
        System.out.print("请输入年份：");
        Scanner scan=new Scanner(System.in);
        int year = scan.nextInt();
        String run = (year%4 == 0 && year%100 !=0)||(year%400==0) ? "是闰年":"不是闰年";
        System.out.println(year+run);
    }
}
